﻿using System;
using System.Collections.Generic;

namespace Lilium.LParse.CSharp
{
    public struct IntegerLiteral
    {
        public IntegerLiteral(ICollection<int> digits, IntegerTypeSuffix suffix)
        {
            if (digits == null) throw new ArgumentNullException("digits");

            m_Digits = digits;
            m_Suffix = suffix;
        }

        #region public ICollection<int> Digits

        private readonly ICollection<int> m_Digits;

        public ICollection<int> Digits { get { return m_Digits; } }

        #endregion

        #region public DecimalLiteralType Suffix

        private readonly IntegerTypeSuffix m_Suffix;

        public IntegerTypeSuffix Suffix
        {
            get
            {
                return m_Suffix;
            }
        }

        #endregion
    }
}